﻿


using System;
using System.Collections.Generic;
using System.Collections;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openbp
{
	/// <summary>
	/// AIT日志DTO DTO :自定义的数据传输类型 
	/// 
	/// </summary>
	public  partial class AITLogDTO  : UFSoft.UBF.Business.DTOBase
	{
		#region Constructor
		
		/// <summary>
		/// Constructor
		/// </summary>
		public AITLogDTO(){
			initData();
		}
		private void initData()
		{
		
		
		
		
					Retcode = 0; 
		
		
		
		
		

		}

		#endregion
		
		#region Properties
			/// <summary>
		/// url (该属性可为空,且无默认值)
		/// AIT日志DTO.Misc.url
		/// </summary>
		/// <value>System.String</value>
		public System.String Url
		{
			get	
			{	
				return (System.String)base.GetValue("Url",typeof(System.String));
			}

			 set	
			{
				base.SetValue("Url",value);
			}
		}
				/// <summary>
		/// 方法 (该属性可为空,且无默认值)
		/// AIT日志DTO.Misc.方法
		/// </summary>
		/// <value>System.String</value>
		public System.String Method
		{
			get	
			{	
				return (System.String)base.GetValue("Method",typeof(System.String));
			}

			 set	
			{
				base.SetValue("Method",value);
			}
		}
				/// <summary>
		/// 体 (该属性可为空,且无默认值)
		/// AIT日志DTO.Misc.体
		/// </summary>
		/// <value>System.String</value>
		public System.String InParm
		{
			get	
			{	
				return (System.String)base.GetValue("InParm",typeof(System.String));
			}

			 set	
			{
				base.SetValue("InParm",value);
			}
		}
				/// <summary>
		/// 返回数据 (该属性可为空,且无默认值)
		/// AIT日志DTO.Misc.返回数据
		/// </summary>
		/// <value>System.String</value>
		public System.String OutParm
		{
			get	
			{	
				return (System.String)base.GetValue("OutParm",typeof(System.String));
			}

			 set	
			{
				base.SetValue("OutParm",value);
			}
		}
				/// <summary>
		/// 返回码 (该属性可为空,但有默认值)
		/// AIT日志DTO.Misc.返回码
		/// </summary>
		/// <value>System.Int32</value>
		public System.Int32 Retcode
		{
			get	
			{	
				return (System.Int32)base.GetValue("Retcode",typeof(System.Int32));
			}

			 set	
			{
				base.SetValue("Retcode",value);
			}
		}
				/// <summary>
		/// 返回消息 (该属性可为空,且无默认值)
		/// AIT日志DTO.Misc.返回消息
		/// </summary>
		/// <value>System.String</value>
		public System.String Retmsg
		{
			get	
			{	
				return (System.String)base.GetValue("Retmsg",typeof(System.String));
			}

			 set	
			{
				base.SetValue("Retmsg",value);
			}
		}
				/// <summary>
		/// 编码 (该属性可为空,且无默认值)
		/// AIT日志DTO.Misc.编码
		/// </summary>
		/// <value>System.String</value>
		public System.String Code
		{
			get	
			{	
				return (System.String)base.GetValue("Code",typeof(System.String));
			}

			 set	
			{
				base.SetValue("Code",value);
			}
		}
				/// <summary>
		/// 名称 (该属性可为空,且无默认值)
		/// AIT日志DTO.Misc.名称
		/// </summary>
		/// <value>System.String</value>
		public System.String Name
		{
			get	
			{	
				return (System.String)base.GetValue("Name",typeof(System.String));
			}

			 set	
			{
				base.SetValue("Name",value);
			}
		}
				/// <summary>
		/// 开始时间 (该属性可为空,且无默认值)
		/// AIT日志DTO.Misc.开始时间
		/// </summary>
		/// <value>System.DateTime</value>
		public System.DateTime StartTime
		{
			get	
			{	
				return (System.DateTime)base.GetValue("StartTime",typeof(System.DateTime));
			}

			 set	
			{
				base.SetValue("StartTime",value);
			}
		}
				/// <summary>
		/// 结束时间 (该属性可为空,且无默认值)
		/// AIT日志DTO.Misc.结束时间
		/// </summary>
		/// <value>System.DateTime</value>
		public System.DateTime EndTime
		{
			get	
			{	
				return (System.DateTime)base.GetValue("EndTime",typeof(System.DateTime));
			}

			 set	
			{
				base.SetValue("EndTime",value);
			}
		}
		
		#endregion	
		#region Multi_Fields
										
		#endregion 

		#region ModelResource
		/// <summary>
		/// AIT日志DTO的显示名称资源--已经废弃，不使用.
		/// </summary>
		public string Res_TypeName {	get {return "" ;}	}
		/// <summary>
		/// url的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Url　{ get { return "";　}　}
		/// <summary>
		/// 方法的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Method　{ get { return "";　}　}
		/// <summary>
		/// 体的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_InParm　{ get { return "";　}　}
		/// <summary>
		/// 返回数据的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_OutParm　{ get { return "";　}　}
		/// <summary>
		/// 返回码的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Retcode　{ get { return "";　}　}
		/// <summary>
		/// 返回消息的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Retmsg　{ get { return "";　}　}
		/// <summary>
		/// 编码的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Code　{ get { return "";　}　}
		/// <summary>
		/// 名称的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_Name　{ get { return "";　}　}
		/// <summary>
		/// 开始时间的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_StartTime　{ get { return "";　}　}
		/// <summary>
		/// 结束时间的显示名称资源 -- 已经废弃，不使用.
		/// </summary>
		public string Res_EndTime　{ get { return "";　}　}
		#endregion 




		#region EntityData exchange
		
		#region  Do SerializeKey -ForDTOType
		//反序化Key到Data的ID中　－－由FromEntityData自动调用，不处理层次关系
		private void DeSerializeKey(AITLogDTOData data)
		{
		










		}

		#endregion 
		
		/// <summary>
		/// Copy Entity From EntityData
		/// </summary>
		public void FromEntityData(AITLogDTOData data)
		{
			this.FromEntityData(data,new Hashtable());
		}
		//used by ubf..
		public void FromEntityData(AITLogDTOData data,IDictionary dict)
		{
			if (data == null)
				return;
			if (dict == null ) dict = new Hashtable() ;
			dict[data] = this;
			DeSerializeKey(data);
		
			this.Url = data.Url;

			this.Method = data.Method;

			this.InParm = data.InParm;

			this.OutParm = data.OutParm;

			this.Retcode = data.Retcode;

			this.Retmsg = data.Retmsg;

			this.Code = data.Code;

			this.Name = data.Name;

			this.StartTime = data.StartTime;

			this.EndTime = data.EndTime;

		}

		/// <summary>
		/// Create EntityData From Entity
		/// </summary>
		public AITLogDTOData ToEntityData()
		{
			return ToEntityData(null,new Hashtable());
		}
		/// <summary>
		/// Create EntityData From Entity - used by ubf 
		/// </summary>
		public AITLogDTOData ToEntityData(AITLogDTOData data, IDictionary dict){
			if (data == null)
				data = new AITLogDTOData();
			if (dict == null ) 
				dict = new Hashtable() ;
			else
            {
                if (dict.Contains(this))
                {
                    data = (AITLogDTOData)dict[this];
                    return data;
                }
            }
			dict[this] = data;
		
			data.Url = this.Url;

			data.Method = this.Method;

			data.InParm = this.InParm;

			data.OutParm = this.OutParm;

			data.Retcode = this.Retcode;

			data.Retmsg = this.Retmsg;

			data.Code = this.Code;

			data.Name = this.Name;

			data.StartTime = this.StartTime;

			data.EndTime = this.EndTime;

			return data ;
		}

		#endregion	
	}	
	
}